﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SEO.Entity;
using SEO.Business;

/// <summary>
/// 查看公告信息
/// </summary>
public partial class NoticeInfo : AdminPage
{
    /// <summary>
    /// ID
    /// </summary>
    protected int nID;

    protected void Page_Load(object sender, EventArgs e)
    {
        int.TryParse(Common.GetQueryValue("id", 0), out nID);
        if (!Page.IsPostBack)
        {
            //页面数据初始化
            InitData();
        }
    }

    /// <summary>
    /// 数据初始化
    /// </summary>
    protected void InitData()
    {
        Notice Info = new BisNotice().Get(nID);
        if (Info != null)
        {
            ltlTitle.Text = Server.HtmlEncode(Info.Title);
            ltlInfo.Text = Info.Info;
        }
        else
        {
            Response.Write("信息不存在");
            Response.End();
        }
    }
}